import 'package:json_annotation/json_annotation.dart';

part 'activity.g.dart';

@JsonSerializable()
class Activity {
  factory Activity.fromJson(Map<String, dynamic> json) => _$ActivityFromJson(json);

  Map<String, dynamic> toJson() => _$ActivityToJson(this);

  @JsonKey(name: 'address')
  String address;

  @JsonKey(name: 'aim')
  String aim;

  @JsonKey(name: 'checked')
  int checked;

  @JsonKey(name: 'collectnum')
  int collectnum;

  @JsonKey(name: 'company_id')
  int companyId;

  @JsonKey(name: 'cost')
  String cost;

  @JsonKey(name: 'cost_type')
  int costType;

  @JsonKey(name: 'create_time')
  int createTime;

  @JsonKey(name: 'deadline')
  int deadline;

  @JsonKey(name: 'description')
  String description;

  @JsonKey(name: 'end_time')
  int endTime;

  @JsonKey(name: 'form')
  int form;

  @JsonKey(name: 'group_id')
  int groupId;

  @JsonKey(name: 'has_checkquestion')
  int hasCheckquestion;

  @JsonKey(name: 'has_coursefile')
  int hasCoursefile;

  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'is_online')
  int isOnline;

  @JsonKey(name: 'likenum')
  int likenum;

  @JsonKey(name: 'limit_people')
  int limitPeople;

  @JsonKey(name: 'location')
  String location;

  @JsonKey(name: 'logo')
  String logo;

  @JsonKey(name: 'looknum')
  int looknum;

  @JsonKey(name: 'needcheck')
  int needcheck;

  @JsonKey(name: 'notify_config')
  String notifyConfig;

  @JsonKey(name: 'small_group_id')
  int smallGroupId;

  @JsonKey(name: 'start_time')
  int startTime;

  @JsonKey(name: 'status')
  int status;

  @JsonKey(name: 'type')
  int type;

  @JsonKey(name: 'update_time')
  int updateTime;

  @JsonKey(name: 'user_id')
  int userId;

  Activity();


}

enum ActivityStatus{
  created,
  approved,
  ended,
  rejected,
  deleted,

}